<template>
    <el-card shadow="hover">
    <template #header>
      <div class="card-header">
        <el-button class="button" color="#1baeae">+ 解除禁用</el-button>
        <el-button class="button" color="#f56c6c" :icon="Delete">禁用账户</el-button>
      </div>
    </template>
    <el-table v-loading="state.loading" ref="multipleTableRef" :data="state.tableData" style="width: 100%" @selection-change="handleSelectionChange">
      <el-table-column type="selection" />
      <el-table-column property="goodsId" label="昵称" />
      <el-table-column property="goodsName" label="登录名" />
      <el-table-column label="身份状态">
        <template #default="{row}">
          <span :style="{color:row.goodsSellStatus === 0 ? 'green' : 'red'}">{{row.goodsSellStatus === 0 ? '正常' : '禁用'}}</span>
        </template>
      </el-table-column>
      <el-table-column label="是否注销">
        <template #default="{row}">
          <span :style="{color:row.goodsSellStatus === 0 ? 'green' : 'red'}">{{row.goodsSellStatus === 0 ? '正常' : '禁用'}}</span>
        </template>
      </el-table-column>
      <el-table-column label="排序时间">
        <template #default="scope">{{ scope.row.createTime }}</template>
      </el-table-column>
    </el-table>
  </el-card>
  <el-pagination background layout="prev, pager, next" :total="state.total" :page-size="state.pageSize"
      @prev-click="prevClick" @next-click="nextClick" @current-change="currentChange" />
</template>

<script>
  export default {
    name: 'memberAdministration',
  }
</script>
<script setup>
  import {
    Delete
  } from '@element-plus/icons-vue'
  // import { ref } from "vue" 
</script>

<style lang="less" scoped>
  .button {
    color: #fff;
  }
</style>